package com.itany.cloud.service;

import com.itany.cloud.util.ResponseResult;
import org.springframework.stereotype.Service;

@Service
public class UserServiceFallback implements UserService {
    @Override
    public ResponseResult findAll() {
        return ResponseResult.fail("查询所有用户时遇到了故障");
    }

    @Override
    public ResponseResult findById(Integer id) {
        return ResponseResult.fail("根据主键查询指定用户时遇到了故障");
    }

    @Override
    public ResponseResult addUser(String username, String password, String phone, String address) {
        return ResponseResult.fail("添加指定用户时遇到了故障");
    }

    @Override
    public ResponseResult modifyUser(Integer id, String username, String password, String phone, String address) {
        return ResponseResult.fail("修改指定用户时遇到了故障");
    }

    @Override
    public ResponseResult deleteUser(Integer id) {
        return ResponseResult.fail("删除指定用户时遇到了故障");
    }
}
